import request from '@/utils/request'
let ExaminationApi = {
    /*获取试卷列表*/
    getExaminationList(data, errorback) {
        return request._post('/shop/paper.train.paper/index', data, errorback);
    },
    /*获取试卷详情*/
    getExaminationDetail(data, errorback) {
        return request._postBody('shop/paper.train.paper/add', data, errorback);
    },
    /*添加试卷*/
    addExamination(data, errorback) {
        return request._post('shop/paper.train.paper/add', data, errorback);
    },
    /*编辑试卷*/
    editExamination(data, errorback) {
        return request._post('/shop/paper.train.paper/edit', data, errorback);
    },
    /*获取试卷详情 */
    getEdittrainPaper(data, errorback) {
        return request._get('/shop/paper.train.paper/edit', data, errorback);
    },
    /*删除试卷*/
    delExamination(data, errorback) {
        return request._post('/shop/paper.train.paper/delete', data, errorback);
    },
}
export default ExaminationApi;